Add getLayerCanvas
Add createFlattenThumbnail