Automatic resizing of images and assets based on screen resolution