updated method for image fetch. added share function