if image is wider than viewport, scale-down image to viewport size