finish off the the div wrapping function
now it will wrap nonblank images in divs