Forgot to pad while loading 2D image.