did you test, on which delete it crashes??
I did something very much the same in the "sone suggestions" post (though its totaly useless, since one can only import it to a singel file.. but the principle is the same^^) and make you imageManager a singleton (via static members..)