implement bitmap with c