Shadow of a Schwarzschild black hole surrounded by a Bach–Weyl ring