Improving canvas lib object.