Add option to choose if the added view contains a shadow.
Fix warning