def photo_path(instance, filename):
    """
    Storage path of profile photo relative to media root.
    Keep the original file extension only.
    """
    return 'users/{0}/{1}'.format(instance.user.username, '.'.join(['profile-photo', filename.split('.')[-1]]))