Removed some duplication for creation of filter tiles