While 4 works for some samples, 3 is the correct value since 8x8 DCT is used by (m)jpeg.
Attach a file by drag & drop or click to upload