A thin-film solid-state image sensor