found: non sp KisImage created flatten called add called creates a sp out of layer->image() add returns destroying the sp and thus the KisImage conclusion: always create KisImage as sp -- best regards / venlig hilsen Casper Boemann