Spatial Mean Downsampling - Coding problem | OneNoughtOne