Removing promises and adding jfif and jpeg parsers