Fixed image resizing and cropping inconsistencies