adding controller to render png files