It has a rectangular prayer hall capped by 20 domes , supported by 12 great pillars compare this to the imperial mosques of Istanbul , which reflect the influence of Haghia Sophia .
The rectangular hall is supported by twenty smaller pillars also .