add_image and remove_image APIs are obsolete.