Little optimization and sunlight.
Layer and terrain better events data.
imageCanvas image setting function.