Move image loading out of GTK threads