Fixed issue with non-transparent skin detection and made all parameters optional