add logic for image display and social