Changed sendSetProfilePicture to synchronous call

May apply to #534