Percent resizing

Added resizing with percent values.