A new study has charted how the portrayal of women's bodies in paintings has changed through the centuries.