Challenges and improvements in applying a particle image velocimetry (PIV) approach to granular flows