new method to choose image sizes based on screen res