Added support for turning shadow layer on and off through the property 'useShadow'.