check image id