Cell adhesion and cortex contractility determine cell patterning in the Drosophila retina.