Adding flippedX/Y to Image and updated unit testing