Read JPEG using markers