Unlensing HST observations of the Einstein ring 1RXS J1131−1231: a Bayesian analysis