Add optional to JPEG dependency