app: attach the convert to indexed dialog to the image

and not to some widget returned by action_data_get_widget(), and some
more cleanup in image_convert_base_type_cmd_callback().