changes to resize main image on content page and show attachment