Better logic for deciding what scale to return the image at.