Resize a grayscale image with corner-aligned bilinear interpolation matching PyTorch interpolation semantics.