Handle case when insight is run as a plug-in.
Do not use environment class.
Replace loci_tools by bioformats_package
Merge remote-tracking branch 'origin/dev_5_0' into import-fixes-insight
Merge pull request #2060 from ximenesuk/import-fixes-insight

Import fixes insight