[DF-1059] Moved creation of ShadowRect to constructor