2D Image Downsampling and Upsampling Explained with Examples