adds support for inline images