Move image resize and crop logic to ImageUtils class.