updated `create_bitmap()' function to accept RGB value