core graphics classes and utilities