Implemented checkbox widget draw function