1541 | Fix photo ordering after changing primary photo