2D graphics in c