Overhaul. Added simple loading and rendering of pngs.