from datetime import datetime


def generate_filename(instance, filename):
    """Generate the path of the tool-picture"""
    return 'users/{email}/tools/{stamp}-{file}'.format(email=instance.owner.email,
                                                       stamp=datetime.now().timestamp(),
                                                       file=filename)