pass headers through, support for jpeg