Fixed bug #802. Changed opacity value from unsigned char to float.