Feature/publish text

This has the changes requested in the "publish image" pull request.

Oops.