resize and edit images for homepage.