before imageswitcher