add image functtion