Fixed json parsing of image contracts