Mocking up the image library so the repl can be run under textual environments.