improved image resizing and cropping for event and foody models