Cleanup of social sharing and first image functions