Painting with programatically generated divs