Fixed bug preventing sampling of non-square images with multiple channels.
Fixed bug preventing sampling of non-square images with multiple channels.

lucastheis/cmt,lucastheis/cmt,lucastheis/cmt,lucastheis/cmt,lucastheis/cmt,lucastheis/cmt