implemented getPaddedImgBox() method in correlation.cpp [MEMORY ERRORS :( ]