add image initialize code