smooths out layout and images