fixed issue in which the first image that was shared would get used over and over