This isn't complete - the flip toggles do not work as setFlip() is not implemented. The second image is currently always flipped.