Checking image syntax