added and commented out code to save camera previews