I made 2 origin image points (in this case 4 and 5) and used the following code.
<img src="http://content.screencast.com/users/ArcadEd/folders/Jing/media/509e1f02-26bd-4a6b-8e63-fc2a2ec65708/2012-10-13_2132.png" border="0" />
The gunFireRate is just used to slow down the rate of fire.
gunSpawn is a global variable
Thanks for the kind words.