Fix saving photo