Fixed up some of the code and did a little bit of cleanup. Added a background texture when there's a map. Wrote base for differen't types of painting; bounding boxes, triggers, etc