Fixed bug in exporting term images

Essentially added an outer join when finding term images to handle
cases where there images_terms table is empty.