Fixed thumbnails of non iamge resources in page resources and changed more manually built links to link_to helper method