Added tree marshalling of shares and images for shares