High-resolution imaging with a two-dimensional resistive anode photon counter