fix mdwriter images