Add support for flipped display