Added flipping. Fixed anchor point