added option to use customFillStyle generator function