def profile_image(instance, filename: str) -> str:
    """
    Generate user profile photo filename from username
    """
    return f"users/{instance.user.username}/profile_image.{filename.split('.')[-1]}"