Added capability to read JSON definition for image.