while (len >= 0) {
    var thisone = data[len];
    if (thisone.uid) {
        var id = thisone["uid"];
        var size = thisone[photoSize];