allocateBuffers() implemented to perform alloc on UI thread of cv::Mats
comment added
debug stmt added