add share functions to each image