Pressing 'p' will try to save a file in the home directory, which isn't writable. Maybe it should write to the Pictures directory instead?