Fixing flipped images when angle != 0