do we really need to transform to image/jpeg ?