fixed histogram check on second image, removed debugging