Update ImgTool.java

added a method to pad images by an extra cell on every side of the array making the new array  height = prevHeight+2 and width = prevWidth+2