OK, I think I got it but it would still be nice if someone can confirm this.
In the plugins/buddypress/bp-activity/bp-activity-functions.php I have replaced “$src = substr( substr( str_replace( ‘src=’, ”, $src[1] ), 0, -1 ), 1 );” with “$src = substr( substr( str_replace( ‘src=’, ”, $src[1] ), 0, -1 ), 1 );
$src = str_replace(‘”‘, ”, $src);” … basically I have inserted this $src = str_replace(‘”‘, ”, $src); to remove the ” from the $src