Fixed flood-fill bug that was causing artifacts.