Graphics library implementation