changed preview layer's name to previewLayer, for obvious reasons