fixes photos save issue