file-bmp: Use cleaner serialization (sign)

(cherry picked from commit bcf16161e60ed9e3caac9dda891257abf0ada94c)