adds images and element