define json and image class as sending data.

working version , need to speed up.