Fix warning in Bmp codec
Cast size_t arrays in pavx python bindings