Influence of out-of-plane deformation and its elimination in white light speckle photography