register_image() returns an image ID.