Allow the gallery datasource target to be a string as well as an int