Cleaned up 2D texturing code and separated out into an image element (and added a UI manager).