Automatically save the embedded image as JPG instead of PNG

I would prefer to save the embedded image as JPG to lower the added image size into the graph.