utilities for graphics