Inline adapt

This converts inline images into a resource object, which the publish process will store and serve from /resources