Can i have a look at the floodfill code, i have used this before and it worked for me:

[email protected]