if picture with given id doesn't exist redirects to root_path