only convert mime type images to base64 string