Insert base64 image as HTML fragment instead of sed substitution