Added script to base64 encode jpg images and write as JSON