Added image crop functionality.