Changed calibration calculation image counting.

Now using size of dynamically created buffer.
Fixed: Multi-threaded access to camNoToNetId buffer might occur when calculating calibration.