extracted ImageRender to separate class