input image check, index and binary added