add images and image function