Detect and Replace Images using Python

Created using The Python Code Generator.

Prompt

Result