Render system improvements (added layer handling)