issue: nelems >= 0 drawchessboardcorners