Flip image when dependent variable is categorical.