Add inspectImage and getImageID functions