Colour shape painting for learn baby

Sir I have face some problems for using MIT.
I have need colour painting on baby learn.
Please check the screenshot.....
I upload/create any image like as shape. then when I touch the any shape then this shape is full this printing colour.

See here for a flood fill extension....