If statement should pass if IMAGE exists

The if statement should pass when IMAGE exists
and if not revert to the default value.
Merge pull request #7 from rthallisey/master

If statement should pass if IMAGE exists