Fixed a bug that caused polygons to be slightly misdrawn

Also fixed a bug that caused images to inherit properties of future
objects