The image, shared during the official mourning period for Pope Francis, was described as shameful and offensive in Italy and the US.