Implemented flipped() to horizontaly or verticaly flip an image.