Proton beam profile measurements with synchrotron light