lib: use bitmap for cloth type (#33)