Fix a bug with image loading crashing phantom.

- Also catch phantom crashes better.