Add new image crop function