Check pointer for safety's sake
That's why we have shared pointers, so we can check them, and the image could have been deleted.