Set the number of threads used to decode JPEG200 files according to user preferences
JPEG200 is a very popular lossless format used distribute very large satellite images (ie. Sentilel 2 images are 120Mpx 8-bit RGB). Decoding these images on a single thread can take a very long time.
This PR implements using multiple threads to decode the image according to the number of "processors" set in the user preferences.