GenericReader: Bug fix, was using wrong row bytes for allocating the
temporary buffer