Recalculate new images sizes based on original image dimensions