Add support for text encoded images