A paint application using graphics.h library in c