whole jpeg algorithmus