Added support for inline images and cleaned up CSS