Added non-recursive colour fill implementation for large images (stack overflow with recursion over 50 x 50)