Update scan button image and turn on debug flag.