If statement should pass if IMAGE is not null

Add -n to check that IMAGE is not null.