ticket:5 add check for empty photo path