Catch null pointer from load-image