Got layer icons fully working.
fixed an error in the way layers are rendered.