Fixed the profile photo logic when first newly installed.