Added ability to rotate screen by 0,90,180, and 270 degrees.