Fix fill patterns.

This fixes fill patterns so that they work again.  I think this and related code could stand some refactoring - shapes, patterns, images, etc are all being handled slightly differently - but for now it works.