Fix opacity in createFromString