flood fill scan lines algorithm cleaned up