Image sharing logic implemented and tested