added function that represents image into data set