Beam studies at the SPEAR3 synchrotron using a digital optical mask