update method loadImage to choose mode of getting images

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