change photo link to id