marley: optimized image manipulations
marley: crop images to avoid distorting the aspect ratio