adjusts images and layouts