Added cancel feature to ImageCompilerContext