Explain how to use layers and masks to apply edits to specific parts of an image without changing the original file.