added flip method to image to allow images to be flipped on x, y or both axes.