create resize method for thumbnail images, display images as thumbnails on homepage and user profile page.