I'm loading images from the server and naturally the thumbnails are pretty small, much smaller then the screen size. I noticed that only dimension ratios is taken into account, not sizes of the images themselves, thus images are often getting upscaled which is undesirable. Is there any workaround?