Update profile.php

added base64_encode switch for thumbnailPhoto attributes 

to allow pulling thumbnailPhoto attributes to the database.