Use the active image, instead of needing to open something from disk. This might be a bit involved though, depending on which metadata SLIM Curve needs. Ideally, that metadata would already be available from the Info of the active image. (Ask if you need details on this.)