it depends where you are getting your image from? for my particular case it was not an external image, the image would be drawn using the drawing canvas action, then i would use the snapshot action. then i had a custom plugin that would take that the snapshot data and serialize it. then i can store the data in local storage. my custom plugin also could load back that serialized data and load it back to the snapshot. i have not used the new binary plugin not sure if that might help store the data some how?