Share widget: Fixed copying of sprited images (fixes #4655)