Make the number of images loading threads compile-time configurable, set to 2