I want a function to display the image inverted up, down, left, and right directions.