fix save event and canvas to image with base64