image: The callback ID is bytes, not string

Fixes Python 3 breakage.