added image scripts for swf