update method loadImage to choose mode of getting images

mode = 0 >> get folder of image (image in folder must have sort by number)
mode != 0 >> get array of images path (it has an image path name directly)