update cdat plot to convert from png to jpeg and to base64