Parsing for JSON response when passing image