operations: fix segmentation fault on texturize-canvas

+ some minor clean-up