extend graphics and cleanup