Minor change to work with latest DrawingContext.