Downsampling big images with numpy and numba