Added support for turning shadow layer on and off

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