Some modifications for queue in ImageLoader.