A method for the measurement of phase with high accuracy in intensity modulated optical imaging