making figure resizable in options