Add error handling to image cleanup script.

To prevent issues with out of date or manually deleted images, make
deleting the images and flagging the model as deleted as "best effort"
tasks and report any issues to the user.