DEV: Add overloading function for ChooseFunction : does not need to load library of image at each time