fixes weird sizes for high res images
Merge pull request #1102 from twokul/fix-for-images

fixes weird sizes for high res images