do not attempt to base64_decode an empty PHOTO; do not base64_decode more than 10 times