image filters in C using FreeImage, OpenGL, and FreeGLut