Added API functions for shares
Modified API function for images to give images in a share