JSON file added as a flag to collect ref images
Exception class defined in case of mismatch