Adding debug output to api_image_spec