Update profile.php

added base64_encode switch for thumbnailPhoto attributes