added base64 image sanitation