const paranoia

btw, shouldn't it be std::uint8_t instead?
add generate_bitmap