fix im2col height/width bound check bug (issue #284 identified by
@kmatzen)