convert html, encoding base64 datauri, copy images in markdown to destination directory, argument parsing