Chemical sensors based on image detectors