fix imagecrop bug