test_image: can now append a number of padding bytes at end of scanline.