Output images function added.