chg: dev: Refactored and improved graphics creation logic.