Detect and Replace Images using Python

Prompt

Result