A simple bitmap API in C