change coordinate system (top left = (0, 0), positive x is right and
positive y is down)
fixed bug where shapes did not rotate properly (introduced with new
coordinate system)