improved support for image response.

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