created the images and set the functions