support divs to export web-only and pdf-only

This adds more flexibility for exporting into different formats, based on Hugh's suggestion https://groups.google.com/d/msg/pressbooks/1xL7qk8pQtU/xo2AOY7nvqwJ

This change helps me to create a separate PDF export with black & white images for a publisher