modified code to display large images on main and category pages