ticket:5 added old photo deletion code