Transfer image to columns to support all kinds of sliding window operations