Don't crash apps on nil image
Merge pull request #2 from dav/nil-value-crash-fix

Don't crash apps on nil image