fix create message avatar from encoded data url