stackoverflow on pixel identification fixed