Simple Bitmap library in C