Make use of the new `stride` option in `pixel-stack`
checking the length of the `img.data` buffer will fail when stride is not `width * 3`. Test against the height and width options of the image.