Direct imaging of a digital-micromirror device for configurable microscopic optical potentials