I think that a better strategy is to throw the exception when the image is used in `getImage()`, because between this code and a call to `execute()`, maybe the image was deleted.