before add image