clean up divs, resize two images, improve rtl support