getImageID() has been deprecated for some reason or another, I forget. Ah, because it's replaced with $image->id which comes from PersistentObject.
The better method is in latest SVN, already fixed. See above. New version will be out soon with the fixes...