encoding jpeg replaced with octet stream