Color serialization fixed
preparations for min_height
preparations for min_height

PHP code cleanup
min_height support added

tests with real data to be done
var handling cleanup to be done