Clean codeflow and check if an image exists locally.