Moved all rendering logic to renderer class. Renderer loads and caches images