Modified the marker builder to determine which marker image to use based on class.