increased capabilities of script api
fix color conversion from hsv to rgb