I used an index colour array so colour 150 is yellow instead of medium red. The flames still aren't that well defined (too blurry) and the code would make baby jesus cry but otherwise I'm pleased. Have a look at it in action.
edit: use up/down arrow key to change fireosity.