Add ability to horizontally and vertically flip the image

