Fast, (mostly) lossless JPEG transformations with Python