Library for managing PPM images in C