added resize for images used in html