init graphic