Though I haven't done any PWM with Picaxe I'm reasonably certain that the initializing of the PWM is causing your flash. Try changing the duty cycle on that line to '0'. After all,.. your Duty Cycle loop starts at 0, so why not the PwmOut line?
pwmout pwmdiv4, 2, 99, 0
Chris