redirect from photo detail to photo if no image id is given