flip image if not mpl 1.0.0