If statement should pass if IMAGE exists

The if statement should pass when IMAGE exists
and if not revert to the default value.