calculate scale correctly for images

Correctly calculates images based on their scale, this became apparent when using this view in a collection view