Adding shadow as a sublayer instead of a mask on the view's main layer.