copyMakeBorder_demo.cpp: changed global variables to local to prevent warning on some systems