fix to handle 64bit capture image ids correctly