An optically controllable 0.35 THz single-pixel camera for millimeter resolution imaging