added tag on photo detail and added constraints