Make MarkupM into a monad transformer with legitimage monad instances.