Caravaggio was know to use prostitutes as models, as in this painting of the death of Mary (mother of Jesus). circa1606 It was documented that the painting was rejected by the patron who commissioned it because of that - or the other reason for rejection might have been because of the improper manner in how Mary was depicted.
It can be seen at the Louve in Paris.