check result of getImage() for null to prevent NPE
Merge pull request #835 from millmanorama/eo1_npe_fix

check result of getImage() for null to prevent NPE