Restrict extracted audio cover bytes to JPEG/PNG via magic-byte sniffing instead of trusting the declared MP4 imageformat, so a GIF (or missing format) is no longer mislabeled and persisted as image/jpeg.