BMP encoding: use stride