resizes photos and adds link to refresh on home