code for when other pages are in jpg or png format