Added the option to only show either 'load images' or 'load from stack' in AddFile buttons
reverting changes partly from cca599c77c56a643647e3eac94077dcd2b79146d