Ilya's patch: jpeg snapshot support
Somewhy jpegs had R and B swapped (at least, on 64bit Linux)
Merge branch 'jpeg-snapshot'