ensure status of image details is OK before outputting image name
Merge pull request #19 from salemine/fix-name-error

Exception: NoMethodError: undefined method `name' for nil:NilClass - ensure status of image details is OK before outputting image name