resize images according to screen size