correct layout percents and images