spacing
renamed im to img
proper dirty propagation for OpToImage
setDirty() a little better in OpToImage