def profile_pic_upload_directory_path(instance, filename):
    """
    file will be uploaded to uploads/profiles/<type>/<username>/<filename>
    """
    return 'uploads/profiles/{0}/{1}/{2}'.format(instance.type, instance.username, filename)