Fixes resizing to integer ratio and resizes all images to all sizes
Adds padding to images