Changed graphics fill algorithm to not use fractions.