Add message to NullPointerException exceptions in getPixels and drawPixels