Cleaned up profile image code