Ibn al-Haytham (965 - 1040), pencetus optik