solved the problem of images not resizing for different screen sizes