Support sprite layers

Sprites can be assigned to one of nineteen layers. Layer zero is the
primary (default) layer, with layers one through nine and layers negative
one through negative nine existing in either direction.