def set_width(width)
        if width.nil?
          if @width.nil? || @width == 0
            frames.each do |frame|
              @width = frame.width.to_i if frame.width.to_i > @width