Added dynamic settings system. Fixed a bug in painter that caused to read sign from nullptr