Bug fix to display image formats properly and to display png properly