resize images to fit in browser