Graphic optimization