renamed 'createPreviewLayer' to 'getPreviewLayer'