Fix bug where adding two images to the canvas in the same frame caused ghosting.