Add option to render always as layer instead of drawViewHierarchyInRect

Add option to render always as layer instead of drawViewHierarchyInRect to force the usage of renderAsLayer