Added fit to width functionality