Fixed OpenCV adding padding to grayscale images