Prepare to switch image source.