[PD] JPEG support in Gem