image gradient crop fix