Render images on main and detail page