debug error/crash when trying to save photo manually