Even though you already found a solution, wouldn't it be possible to just make the image read-only by setting it's "read-only" file attribute?
I do understand you want to protect the image from being deleted, but I'm not completely sure who/what you want to protect the image from.
With kind regards,
Spiderstyle