prevent duplicated images was loaded

Because shape_a[] array in main.js is the flag that indicates if the set images has been loaded, so different clients should synchronization shape_a[] array, otherwise the duplicated images was loaded sometimes.