Multiple layers

This version support multiple layers for use with Starling for example