Added support for inlining images.

Added lots of javadoc.