Improved graphics API