update the img and swf