Catch NullPointerExceptions

Catch NullPointerExceptions when it fails to get the image