added initialize graphics