The painting depicting the martyrdom of St. Sebastian was created as the main image for the altar under the same invocation and was most probably created together with the reredos, in the 1750s. Probably its author is Piotr Kornecki, who was a painter and a sculptor by trade. The painting "The Martyrdom of St. Sebastian" is modelled on a work of the same title, attributed to Giovanni Battista Pittoni, from the church of the Blessed Virgin Mary in Cracow. Saint Sebastian has been worshipped as protector against infectious and epidemic disease, therefore, he was proclaimed the patron of the votive temple, built after the plague in Wieliczka had ceased to exist.
Paulina Kluz, "The Martyrdom of St. Sebastian ", [in:] "The Sacred Lesser Poland Heritage", 2022, source: https://sdm.upjp2.edu.pl/en/works/the-martyrdom-of-st-sebastian-3