get latest photo ajax