fixed bug in photo cropper