add images and modify image reference