add clearTimeout to loadImage
change add and remove to push and pop
add add method and remove method