Implemented a simple markdown image URL rewriter