Image generator thread