}
foreach ($arPSUserlist as $sUsername) {
    if ($sUsername == 'COMMON') {
        $sUserPath = '';
    } else {
        $sUserPath = SYNO_HOMES_PATH . $sUsername . '/photo/';
    }
    echo "\nUsername: "******"\n";
    try {
        $oDBH = new DatabaseHandler($sUserPath);
        $oDBH->prepare();
    } catch (RuntimeException $e) {
        echo $e->getMessage() . "\n";
        continue;
    }
    $arPhotos = $oDBH->getPhotos();
    foreach ($arPhotos as $arPhoto) {
        echo $arPhoto['path'] . ': ';
        $oImage = new PSImage($sUserPath, $arPhoto);
        $oImage->prepare();
        if (!$oImage->isPicasaXMP()) {
            echo "No Picasa face information\n";
            $oDBH->setPhotoMerged($oImage->getIId());
            continue;
        }
        if ($oImage->isMicrosoftXMP()) {
            echo "Already have Microsoft Xmp.Data (Try to reindex image manual!)\n";
            $oDBH->setPhotoMerged($oImage->getIId());
            continue;
        }
        if (!$oImage->isImageResolutionLikeInTag()) {