I created a median composite from GEE image collection over a period. I went on to compute Euclidean distances for each image within the collection from the median composite