working jpeg dwonsample, smallest imgs possible