Add JSON object to image object

type property should be specified inside a JSON object.