The canvas object does have some bugs, but I tried it in one of my .caps and it worked.
Put the canvas on the top layer
Make sure it's always in front of everything
In the properties, set it to grab the layout before drawing
On event, imagemanipulator, copy from sprite: canvas
Then imagemanipulator, save to file