Added class for automatic GUI rescale.