Correctly handle single-pixel-width bitmaps