correlation: Fix two bugs

  * Fix indexing in image_filter to account for colors
  * Set the result image to 0