Many users here want to share images. It’s sad that BuddyPress doesn’t provide an easy way to do it.
So I searched for a solution and found this. It actually works but needed a fix to support https so I tried to do something (probably not the best code ever).