Design of SIS imaging array for terahertz astronomy