Added support for min and max size values relative to image size.