added gravity setting for cropping