import re


def fix_path(path):
    """
    Edit the filename that gets sent to image hosts. Some
    filehosts are picky with the filenames that get sent. For
    example, vgy.me does not accept `.jpe` as a valid file
    extension.
    """
    return re.sub(r'jpe$', 'jpeg', path)