Fix syntax error - img_check needs a curly brace

Fix syntax error created by over-zealous removal of debug log
messages pre-commit. if clause in img_check function lost an
important curly brace.

Signed-off-by: Jeff Godin <jgodin@tadl.org>