Revert "replaced sprintf with cv::format"

Fixing build breakage.

This reverts commit b83eff7ecf0a3a8a9d706168150d569c94f0b71e.