Added flipping and rotation to Canvas class.