Image support added

Rectangles can now have images instead of solid colours.