I had the same problem on a pc when i was writing the script, I can't remember what or how I solved it, maybe try running the code on this .fla (see if it makes any difference) just resize the image (in the fla) to 320x320

tell me how you get on