Resize images on mobile devices