Add a hack so that RGBA pixels are flipped properly in unit tests.