image crop bug fix