Trouble with diffImage function

Need to finish isNull check in diffImage function.