refactor uri_direct, some doc, markdown filter that downloads images