Created plugin version of save_layers_to_files.jsx