General housekeeping of graphics