added imageState
added new debugging features and completed showing the global illumination