added support for jpeg image responses.

Signed-off-by: Johny Jose <johny@playlyfe.com>