changed hardcoded width to grab width from color picker element instead.