Application of an optically addressed spatial light modulator to real-time speckle photography