Hi, see
How to trigger an error if an image is still there? (or: Wait until image disappears) - #2 by admin
If {picture} then {do this}