Detect if image changed