Perceptual comparison of demosaicing algorithms and in-camera demosaicing with JPEG compression