refactor image link to go to number instead of id